package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.entity.ProductStockRackDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.extentity.ProductStockDetailDto;
import com.cloudkinto.extentity.ProductStockDto;
import com.cloudkinto.extentity.orderrepair.ProductStockRepairDto;
import com.cloudkinto.extentity.stockday.StockDayTotalDto;
import com.cloudkinto.extentity.stockday.StockHistoryDaysDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author hua
 * @since 2023-01-04
 */
@Mapper
public interface ProductStockRackDao extends BaseMapper<ProductStockRackDo> {

    ProductStockDetailDto getStockByRackId(@Param("map") Map<String, String> map);

    List<StockDayTotalDto> getStockTotalOldTable(@Param("map") Map<String, String> map);

    List<StockHistoryDaysDto> getStockHistory(@Param("map") Map<String, String> map);

    IPage<ProductStockRepairDto> getProductList(@Param("page") IPage<ProductStockRepairDto> page, @Param("map") Map<String, String> map);


}
